{extend name="index_layout"/}
{block name="main"}

<form class="layui-form" method="post">

<!--    <button class="layui-btn" onclick="goBack()">back</button>-->

    <input type="hidden" name="id" value="{$data.id}">
    <input type="hidden" name="shop_id" value="{$data.shop_id}">
    <input type="hidden" name="salesperson_id" value="{$data.salesperson_id}">
    <div class="layui-form-item">
        <label class="layui-form-label">手机号码</label>
        <div class="layui-input-block">
            <input type="text" value="{$data.phone}" name="row[phone]" autocomplete="off" placeholder="手机号码"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开卡人姓名</label>
        <div class="layui-input-block">
            <input type="text" value="{$data.people}" name="row[people]" autocomplete="off" placeholder="开卡人姓名"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">套餐类型</label>
        <div class="layui-input-block">
            <select name="row[package_id]" lay-verify="required" lay-filter="ccc62" lay-search>
                <option></option>
                {volist name="packList" id="vo"}
                <option value="{$vo.id}"
                <?php if( $vo['id'] == $data['package_id']){ ?> selected <?php }?>>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">首冲金额</label>
        <div class="layui-input-block">
            <input value="{$data.sc_money}" type="number" name="row[sc_money]" lay-verify="required"
                   autocomplete="off"
                   placeholder="首冲金额(不填写为套餐默认值)"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商家奖励</label>
        <div class="layui-input-block">
            <input type="number"value="{$data.reward1}" name="row[reward1]" autocomplete="off" placeholder="商家奖励(不填写为套餐默认值)"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">业务员奖励</label>
        <div class="layui-input-block">
            <input type="number" value="{$data.reward2}" name="row[reward2]" autocomplete="off" placeholder="业务员奖励(不填写为套餐默认值)"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商家服务费</label>
        <div class="layui-input-block">
            <input type="number" value="{$data.commission1}" name="row[commission1]" autocomplete="off" placeholder="商家服务费(不填写为套餐默认值)"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">业务员服务费</label>
        <div class="layui-input-block">
            <input type="number"  value="{$data.commission2}" name="row[commission2]" autocomplete="off" placeholder="业务员服务费(不填写为套餐默认值)"
                   class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">号码图</label>
        <div class="layui-input-block">
            <div class="w300">
                <input value="{$data.hm_img}" type="text" lay-verify="required" name="row[hm_img]" id="c-pic2"
                       class="layui-input">
            </div>
            <button type="button" class="layui-btn faupload" id="faupload-pic2" data-multiple="false"
                    data-input-id="c-pic2"
                    data-preview-id="p-pic2" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传
            </button>
            <button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image"
                    data-input-id="c-pic2" id="fachoose-c-pic2"><i class="iconfont icon-other"></i> 选择
            </button>
            <ul class="layui-row list-inline plupload-preview" id="p-pic2"></ul>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">人证图</label>
        <div class="layui-input-block">
            <div class="w300">
                <input value="{$data.rz_img}" type="text" lay-verify="required" name="row[rz_img]" id="c-pic3"
                       class="layui-input">
            </div>
            <button type="button" class="layui-btn faupload" id="faupload-pic3" data-multiple="false"
                    data-input-id="c-pic3"
                    data-preview-id="p-pic3" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传
            </button>
            <button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image"
                    data-input-id="c-pic3" id="fachoose-c-pic3"><i class="iconfont icon-other"></i> 选择
            </button>
            <ul class="layui-row list-inline plupload-preview" id="p-pic3"></ul>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">承诺书图</label>
        <div class="layui-input-block">
            <div class="w300">
                <input value="{$data.cns_img}" type="text" lay-verify="required" name="row[cns_img]" id="c-pic1"
                       class="layui-input">
            </div>
            <button type="button" class="layui-btn faupload" id="faupload-pic1" data-multiple="false"
                    data-input-id="c-pic1"
                    data-preview-id="p-pic1" data-type="image"><i class="layui-icon layui-icon-upload"></i> 上传
            </button>
            <button type="button" class="layui-btn fachoose" data-multiple="false" data-mimetype="image"
                    data-input-id="c-pic1" id="fachoose-c-pic1"><i class="iconfont icon-other"></i> 选择
            </button>
            <ul class="layui-row list-inline plupload-preview" id="p-pic1"></ul>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">审核状态</label>
        <div class="layui-input-block" id="is_c3">

            <!--            <input type="radio" name="row[kf_status]" value="0" title="待审核" {if $data.kf_status==0}checked{/if}-->
            <!--                   lay-filter="ccc3">-->

            <input type="radio" name="row[kf_status]" value="1" title="审核通过" {if $data.kf_status==1}checked{/if}
                   lay-filter="ccc3">

            <input type="radio" name="row[kf_status]" value="2" title="审核失败" {if $data.kf_status==2}checked{/if}
                   lay-filter="ccc3">
        </div>
    </div>

    <div class="layui-form-item r1">
        <label class="layui-form-label">审核失败原因</label>
        <div class="layui-input-block">
            <input type="text" name="row[kf_refuse]" autocomplete="off" placeholder="审核失败原因" class="layui-input"
                   value="{$data.kf_refuse}">
        </div>
    </div>

<!--    <div class="layui-input-block">-->
<!--        <div class="layui-col-xs4">-->
<!--            <input type="text" name="{$vo.fieldArr}[{$vo.name}]"  id="c-{$vo.name}" value="{$vo.value|default=''}" class="layui-input">-->
<!--        </div>-->
<!--        <button type="button" class="layui-btn faupload" id="faupload-{$vo.name}" data-multiple="{$vo.type=='file'?'false':'true'}" data-input-id="c-{$vo.name}" data-preview-id="p-{$vo.name}" data-type="file"><i class="layui-icon layui-icon-upload"></i> 上传</button><button type="button" class="layui-btn fachoose" data-multiple="{$vo.type=='file'?'false':'true'}" data-mimetype="file" data-input-id="c-{$vo.name}" id="fachoose-c-{$vo.name}"><i class="iconfont icon-other"></i> 选择</button>-->
<!--    </div>-->


    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });

</script>
{/block}